package com.antball.aaa.factory_strategy;

/**
 * @Auther: huangsj
 * @Date: 2019/8/7 14:29
 * @Description:
 */
public class StrategyFactory {

    public  static  IDeduction getDeduction(StrategyMan strategyMan){
        IDeduction deduction=null;
        try {
            deduction = (IDeduction)Class.forName(strategyMan.getValue()).newInstance();
        } catch (Exception e) {
            e.printStackTrace();
        }

        return deduction;
    }

}
